home *** CD-ROM | disk | FTP | other *** search
- /* Copyright 1992 H.Ogasawara (COR.) */
-
- #include <wlib.h>
- #include <parts.h>
- #include "MgButton.h"
-
- MgButtonSetSymbol( mb, x, y, h, num, str, attr, font )
- MgButton *mb;
- char *str;
- {
- MgButtonStr *p;
- if( p= (MgButtonStr*)malloc( sizeof(MgButtonStr) ) ){
- p->type= PushButtonStr;
- ClipSet( (ClipClass*)p, x, y, strlen(str)*font/2+h+h, font+h+h );
- p->ret= num;
- p->next= mb->next;
- p->str= str;
- p->attr= attr;
- p->font= font;
- p->h= h;
- mb->next= (MgButton*)p;
- return TRUE;
- }
- return FALSE;
- }
-
-